#pragma once

#include "ConsolePrerequisites.h"

class CCommandHistory
{
public:
	CCommandHistory();

	void				Clear();
	void				Push( const csString & command );
	csString			GetPrevCommand();
	csString			GetNextCommand();

private:
	typedef std::list<csString> CommandHistory;
	CommandHistory				m_strHistory;
	CommandHistory::iterator	m_iterCurrent;
};


